package com.bruce.tool.web.filter.config;

import com.bruce.tool.web.filter.core.WaitingHandlerInterceptor;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

public class RegisterBlockWaitingConfigurer implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new WaitingHandlerInterceptor()).addPathPatterns("/**");
    }
}